package collection;

import java.util.Arrays;
import java.util.List;

public class ArrayToList {
    public static void main(String[] args) {
        String[]arr={"1","2","3"};
        System.out.println(Arrays.toString(arr));
        List<String> list=Arrays.asList(arr);
        System.out.println("list:"+list);
        arr[1]="7";
        System.out.println("arr:"+Arrays.toString(arr));
        System.out.println("list:"+list);
        list.set(2,"9");
        System.out.println(Arrays.toString(arr));
        System.out.println(list);
    }
}
